package cn.tedu.home.wife.controller;

import cn.tedu.home.wife.service.IWifeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/home")
@Slf4j
public class WifeController {

    @Autowired
    private IWifeService wifeService;

    @GetMapping("/work")
    public String rest(){
        wifeService.clean();// 先让老公收拾屋子
        wifeService.eat(); // 再让老公做饭
        return "老婆歇着真舒服!";
    }



}
